From 27a0cef60ca53232197b8bfa75f4dbc3a390fff7 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Sat, 5 Mar 2011 03:05:54 -0500 Subject: [PATCH] notebook: make sure the allocation keeps track of the tab curvature This was a genuine typo, because "padding" was calculated but unused in this branch of the code. --- gtk/gtknotebook.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index edcd68488d..0baa3ed55e 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -6051,10 +6051,10 @@ gtk_notebook_page_allocate (GtkNotebook *notebook, padding = tab_curvature + focus_width + priv->tab_hborder; if (page->fill) { - child_allocation.x = tab_padding.left + focus_width + priv->tab_hborder; + child_allocation.x = tab_padding.left + padding; child_allocation.width = MAX (1, (page->allocation.width - tab_padding.left - tab_padding.right - - 2 * (focus_width + priv->tab_hborder))); + 2 * (padding))); child_allocation.x += page->allocation.x; } else -- 2.30.2